Anyone have a script that could be scheduled to create a DOORS Project Archive automatically? jhays - Tue Apr 01 10:30:12 EDT 2014 |
Re: Script to automate creation of DOORS Project Archive It would be quite simple script, with a loop (for project in database do) and the archive function within it. But, since in DOORS you can have project within a project, simply archiving all projects may mean that you'd end up duplicating data. So you may want to consider having all items at root level to be of type project, and then archiving only the root level projects. Even after you convert folders at root level to projects, the script logic would pretty much remain the same, except the loop - you'd need for item in folder do loop. |
Re: Script to automate creation of DOORS Project Archive SudarshanRao - Thu Apr 03 01:13:22 EDT 2014 It would be quite simple script, with a loop (for project in database do) and the archive function within it. But, since in DOORS you can have project within a project, simply archiving all projects may mean that you'd end up duplicating data. So you may want to consider having all items at root level to be of type project, and then archiving only the root level projects. Even after you convert folders at root level to projects, the script logic would pretty much remain the same, except the loop - you'd need for item in folder do loop. Or bypass projects with parent projects:
|
Re: Script to automate creation of DOORS Project Archive It's been a while since I posted a script to this forum - so I'm not sure if the formatting will hold, but below is a script that will archive all the projects in a DOORS database (except those that are currently locked because someone has a module open). It will email the results, listing all the projects that it archived and also list those that weren't archived because they were locked. It will give you the DOORS username of the culprit who was locking you out. It's written to export the archived projects to a folder named "DOORS_Projects" on your C drive, so you'll have to create that folder if it doesn't exist. I would run this as a batch process, using a Windows scheduled task on the PC that runs it - so you can run it at night and get the results the next morning. Good Luck!! XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//Archive Projects - CheckLocks
//Created 09/07/2011 - Saab Sensis Corp - C. Annal
/*******************************************************************************
/*******************************************************************************
/*******************************************************************************
for pX in database do { |
Re: Script to automate creation of DOORS Project Archive Chris Annal - Fri Apr 04 12:45:40 EDT 2014 It's been a while since I posted a script to this forum - so I'm not sure if the formatting will hold, but below is a script that will archive all the projects in a DOORS database (except those that are currently locked because someone has a module open). It will email the results, listing all the projects that it archived and also list those that weren't archived because they were locked. It will give you the DOORS username of the culprit who was locking you out. It's written to export the archived projects to a folder named "DOORS_Projects" on your C drive, so you'll have to create that folder if it doesn't exist. I would run this as a batch process, using a Windows scheduled task on the PC that runs it - so you can run it at night and get the results the next morning. Good Luck!! XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
//Archive Projects - CheckLocks
//Created 09/07/2011 - Saab Sensis Corp - C. Annal
/*******************************************************************************
/*******************************************************************************
/*******************************************************************************
for pX in database do { The only formatting issue with my code above (as far as I can tell) is that there is a single line of code that appears on two separate lines. This should all appear on the same line... string proj_archive = archive (sProjectName,"c:\\DOORS_Projects\\"(sProjectName)".dpa",false,true,allBaselines,false) ...for that part of the code above, the "double slashes" appear as a comment line just before the "(sProjectName)".dpa
...sorry, the "new" format still confuses me. |
Re: Script to automate creation of DOORS Project Archive Hi Chris, This is an excellent DXL script. It is working very well. I will be customizing the script slightly to meet my DOORS project needs. Again thanks a bunch for this great DXL script to archive DOORS projects. Best regards, Mike |